package com.flyco.modules.pms.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: SPU管理
 * @Author: flyco
 * @Date:   2020-03-09
 * @Version: V1.0
 */
@Data
@TableName("pms_product")
public class PmsSpuProduct implements Serializable {
    private static final long serialVersionUID = 1L;

	/**商品ID*/
	@TableId(type = IdType.AUTO)
	@ApiModelProperty(value = "商品ID")
	private Long id;
	/** SPU */
	@TableField(updateStrategy = FieldStrategy.IGNORED)
	@ApiModelProperty(value = "SPU")
	private String spu;
	/**创建人*/
	@ApiModelProperty(value = "创建人")
	private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "创建时间")
	private Date createTime;
	/**更新人*/
	@ApiModelProperty(value = "更新人")
	private String updateBy;
	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "更新时间")
	private Date updateTime;
}
